import request from '@/utils/request'

// 查询车程费信息表列表
export function listPayroad(query) {
  return request({
    url: '/service/payroad/list',
    method: 'get',
    params: query
  })
}

// 查询车程费信息表详细
export function getPayroad(payroadId) {
  return request({
    url: '/service/payroad/' + payroadId,
    method: 'get'
  })
}

// 新增车程费信息表
export function addPayroad(data) {
  return request({
    url: '/service/payroad',
    method: 'post',
    data: data
  })
}

// 修改车程费信息表
export function updatePayroad(data) {
  return request({
    url: '/service/payroad',
    method: 'put',
    data: data
  })
}

// 删除车程费信息表
export function delPayroad(payroadId) {
  return request({
    url: '/service/payroad/' + payroadId,
    method: 'delete'
  })
}
